package net.hn.hnms.biz.safety.location.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.util.Date;

/**
 * Author: PanSX
 * Date: 2023/5/9 16:26
 */
@Data
@ApiModel("带值班信息读取")
@Entity
@Table(name = "lead_duty", schema = "jxry", catalog = "huaneng-safety")
public class DutyLeadEntity {
    @Id
    @GeneratedValue(strategy = GenerationType.AUTO, generator = "custom-id")
    @GenericGenerator(name = "custom-id", strategy = "net.hn.hnms.biz.common.jpa.utils.CustomIDGenerator")
    private  Long id;
    @ApiModelProperty("值班人")
    private String duty;
    @ApiModelProperty("带班领导")
    private String lead;
    @JsonFormat(
            pattern = "MM-dd HH:mm",
            timezone = "Asia/Shanghai"
    )
    private Date dataTime=new Date();
    private String mineCode;
}
